<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link style="text/css" rel="stylesheet" href="css/style.css">
<style type="text/css">
.item {
	margin-top: 15px;
	text-align: center;
}
</style>
<script type="text/javascript">
	$(function() {
		$("#btnCancel").click(function() {
			parent.art.dialog.list['login'].close();
		});

		$("#btnSubmit").click(function() {
			if($("#account").val() == ""){
				art.dialog.alert('账号不能为空，请检查！');
				return false;
			}
			if($("#password").val() == ""){
				art.dialog.alert('密码不能为空，请检查！');
				return false;
			}
		});

	});
</script>
</head>
<body>
	<form action="pages/login_handler.jsp" method="post">
		<div style="width: 250px; margin: 0 auto; padding-top: 5px;">
			<div class="item">
				账号：<input type="text" style="width: 150px;" name="account"
					id="account">
			</div>
			<div class="item">
				密码：<input type="password" style="width: 150px;" name="password"
					id="password">
			</div>
			<div class="item" style="height:15px;color: red;">
				<%=request.getAttribute("msg") == null ? "":request.getAttribute("msg") %>
			</div>
			<div class="item">
				<input type="submit" id="btnSubmit" value="登录">
				&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" id="btnCancel"
					value="取消">
			</div>
			<input type="hidden" name="returnUrl" value="<%=request.getParameter("returnUrl") %>">
		</div>
	</form>
</body>
</html>